<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="core" uri="http://www.urbanspace.cn/jsp/tags/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<title>中城智库 - 首页</title>
		<jsp:include page="/WEB-INF/pages/base/inc/inc.jsp" />
		<script type="text/javascript" src="${BASE_PATH }static/js/member/identity/member_identity_list.js"></script>
		<script type="text/javascript">
			var itemId = '${item.id}';
			$(document).ready(favoriteCount()); 
			function favoriteCount(){
				$.post(basePath+'member/favorite/index.htm',{"item.memberId": itemId},function(data){
					$("#tab_4").html(data);
				},"html");
			}
			/** 
			 * 加载专家基本信息页面
			 */
			function initExpertDetail(){
				$.post(basePath+'member/expert/edit.htm',{"item.memberId": $("#itemId").val(),"detail":"1"},function(data){
					$("#tab_5").html(data);
				},"html");
				return false;
			}

			/** 
			 * 加载会员资格证书页面
			 */
			function initMemberQualified(){
				$.post(basePath+'member/qualified/getByMemberId.htm',{"item.memberId": $("#itemId").val(),"detail":"1"},function(data){
					$("#tab_6").html(data);
				},"html");
				return false;
			}
		</script>
	</head>
	<body class="hold-transition skin-blue sidebar-mini">
		<div class="wrapper">
			<%-- 头部 Start --%>
			<jsp:include page="/WEB-INF/pages/base/inc/header.jsp" />
			<%-- 头部 END --%>
	
			<%-- 左侧菜单 Start --%>
			<jsp:include page="/WEB-INF/pages/base/inc/menu.jsp">
				<jsp:param value="262e6020e8ce11e5902d5065f33960fc" name="menu" />
			</jsp:include>
			<%-- 左侧菜单 END --%>
	
			<div class="content-wrapper">
				<section class="content-header">
					<ol class="breadcrumb">
						<li class="active">会员管理</li>
						<li class="active">会员管理</li>
						<li class="active"><a href="${BASE_PATH}member/index.htm">会员列表</a></li>
						<li class="active">会员详情</li>
					</ol>
				</section>
	
				<section class="content">
					<%--  会员基本信息结束 --%>
					<div class="box box-default box-common">
						<div class="box-header with-border">
							<h3 class="box-title">会员基本信息</h3>
							<div class="box-tools pull-right">
								<%-- <button class="btn btn-box-tool" data-widget="collapse">
									<i class="fa fa-minus"></i>
								</button> --%>
								<a class='btn btn-info' href="${BASE_PATH }member/edit.htm?item.id=${item.id}">编辑</a>
							</div>
							<%-- /.box-tools --%>
						</div>
						<%-- /.box-header --%>
						<div class="box-body form-horizontal">
							<div class="box-body container-fluid">
							<input type="hidden" id="itemId" value="${item.id}" />
								<div class="row">
									<div class="col-md-8 adoptColmd8 adoptForColsm6">
										<div class="row">
											<div class="col-md-6">
												<div class="form-group form-group-tankuang">
													<label class="col-sm-4 control-label">用户名：</label>
													<div class="col-sm-8 col-info">${item.name }</div>
												</div>
											</div>
											<div class="col-md-6">
												<div class="form-group form-group-tankuang">
													<label class="col-sm-4 control-label">用户昵称：</label>
													<div class="col-sm-8 col-info">${item.nickName }</div>
												</div>
											</div>
										</div>
	
										<div class="row">
											<div class="col-md-6">
												<div class="form-group form-group-tankuang">
													<label for="address" class="col-sm-4 control-label">账号：</label>
													<div class="col-sm-8 col-info">${item.account }</div>
												</div>
											</div>
											<div class="col-md-6">
												<div class="form-group form-group-tankuang">
													<label for="address" class="col-sm-4 control-label">邮箱：</label>
													<div class="col-sm-8 col-info">${item.email }</div>
												</div>
											</div>
										</div>
	
										<div class="row">
											<div class="col-md-6">
												<div class="form-group form-group-tankuang">
													<label for="contactWay" class="col-sm-4 control-label">身份证号：</label>
													<div class="col-sm-8 col-info">${item.identityNo }</div>
												</div>
											</div>
											<div class="col-md-6">
												<div class="form-group form-group-tankuang">
													<label for="contacts" class="col-sm-4 control-label">手机：</label>
													<div class="col-sm-8 col-info">${item.mobile }</div>
												</div>
											</div>
										</div>
	
										<div class="row">
											<div class="col-md-6">
												<div class="form-group form-group-tankuang">
													<label for="url" class="col-sm-4 control-label">性别：</label>
													<div class="col-sm-8 col-info">${item.sex eq 1 ? '男' : '女'}</div>
												</div>
											</div>
											<div class="col-md-6">
												<div class="form-group form-group-tankuang">
													<label for="identityNo" class="col-sm-4 control-label">状态：</label>
													<div class="col-sm-8 col-info">${item.isRealNameAuthentication eq 1 ? '禁用' : '正常'}</div>
												</div>
											</div>
										</div>
	
										<div class="row">
											<div class="col-md-6">
												<div class="form-group form-group-tankuang">
													<label for="contactWay" class="col-sm-4 control-label">是否实名认证：</label>
													<div class="col-sm-8 col-info">${item.isRealNameAuthentication eq 1 ? '已认证' : '未认证'}</div>
												</div>
											</div>
											<div class="col-md-6">
												<div class="form-group form-group-tankuang">
													<label for="contacts" class="col-sm-4 control-label">授权：</label>
													<div class="col-sm-8 col-info">${item.isGrant eq 1 ? '否' : '是'}</div>
												</div>
											</div>
										</div>
										<div class="row">
											<div class="col-md-6">
												<div class="form-group form-group-tankuang">
													<label for="contacts" class="col-sm-4 control-label">会员组：</label>
													<div class="col-sm-8 col-info">${item.groupString }</div>
												</div>
											</div>
											<div class="col-md-6">
												<div class="form-group form-group-tankuang">
													<label for="contacts" class="col-sm-4 control-label">是否专家：</label>
													<div class="col-sm-8 col-info">${item.isExpert eq 1 ? '是' : '否'}</div>
												</div>
											</div>
										</div>
									</div>
									<div class="col-md-4 adoptColmd4">
										<div class="row">
											<div class="col-md-12">
												<div class="form-group form-group-tankuang">
													<label class="col-sm-4 control-label">头像：</label>
													<div class="col-sm-8 col-info">
														<c:if test="${not empty item.sysUploadFile.imgPreviewURL }">
															<img src="${item.sysUploadFile.imgPreviewURL}" style="width: 200px; height:200px;" class="img-rounded" />
														</c:if>
														<c:if test="${empty item.sysUploadFile.imgPreviewURL }">
															<img src="${BASE_PATH}static/images/default_header.jpg" style="width: 200px; height:200px;" class="img-rounded" />
														</c:if>
													</div>
												</div>
											</div>
										</div>
									</div>
								</div>
								<div class="row">
									<div class="col-sm-4">
										<div class="form-group form-group-tankuang">
											<label for="contactWay" class="col-sm-4 control-label">用户标签：</label>
											<div class="col-sm-8 col-info">
												${userTags }
											</div>
										</div>
									</div>
									<div class="col-sm-4">
										<div class="form-group form-group-tankuang">
											<label for="contacts" class="col-sm-4 control-label">专注领域：</label>
											<div class="col-sm-8 col-info">
												${operTags }
											</div>
										</div>
									</div>
									<div class="col-sm-4"></div>
								</div>
								<div class="row">
									<div class="col-sm-12">
										<div class="form-group" id="international" ${empty item.country ? 'style="display: none;"' : '' } >
											<label for="item.status" class="col-sm-1 control-label">国家：</label>
											<div class="col-sm-11">
												<select class="form-control" id="country" name="item.country">
													<c:forEach items="${sysCountry }" var="country">
														<option value="${country.id }" ${item.country eq country.id ? 'selected="selected"' : '' } >${country.name }</option>
													</c:forEach>
												</select>
											</div>
										</div>
										<div class="form-group" id="domestic" ${not empty item.country ? 'style="display: none;"' : '' }>
											<div class="col-sm-4">
												<div class="form-group form-group-tankuang">
													<label for="contactWay" class="col-sm-4 control-label">省：</label>
													<div class="col-sm-8 col-info">${item.provinceString }</div>
												</div>
											</div>
											<div class="col-sm-4">
												<div class="form-group form-group-tankuang">
													<label for="contacts" class="col-sm-4 control-label">市：</label>
													<div class="col-sm-8 col-info">${item.cityString }</div>
												</div>
											</div>
											<div class="col-sm-4">
												<div class="form-group form-group-tankuang">
													<label for="contactWay" class="col-sm-4 control-label">区/县：</label>
													<div class="col-sm-8 col-info">${item.districtString }</div>
												</div>
											</div>
										</div>
									</div>
								</div>
								<div class="row">
									<div class="col-md-12">
										<div class="form-group form-group-tankuang">
											<label for="description" class="col-sm-1 control-label adoptcontrollLabels">个人简介：</label>
											<div class="col-sm-11 col-info adoptMemberSm11">${item.description }</div>
										</div>
									</div>
								</div>
							</div>
						</div>
						<%-- /.box-body --%>
					</div>
					<%-- /.box --%>
					<%-- 会员基本信息结束 --%>
	
					<%-- 工作经历、作品案例、身份证信息、资质证书  信息开始--%>
					<div class="row">
						<div class="col-md-12">
							<div class="nav-tabs-custom">
								<ul class="nav nav-tabs">
									<li class="active">
										<a data-toggle="tab" href="#tab_1" aria-expanded="true">工作经历</a>
									</li>
									<li>
										<a data-toggle="tab" href="#tab_2" aria-expanded="false">作品案例</a>
									</li>
									<li>
										<a data-toggle="tab" href="#tab_3" aria-expanded="false">身份证信息</a>
									</li>
									<li>
										<a data-toggle="tab" href="#tab_4" aria-expanded="false">个人收藏</a>
									</li>
									<c:if test="${item.isExpert eq 1}">
										<li>
											<a data-toggle="tab" href="#tab_5" aria-expanded="false">专家基本信息</a>
										</li>
										<li>
											<a data-toggle="tab" href="#tab_6" aria-expanded="false">资格证书</a>
										</li>
										<li>
											<a data-toggle="tab" href="#tab_7" aria-expanded="false">教育背景</a>
										</li>
										<li>
											<a data-toggle="tab" href="#tab_8" aria-expanded="false">认证信息</a>
										</li>
									</c:if>
								</ul>
								<div class="tab-content">
									<div id="tab_1" class="tab-pane active">
										<jsp:include page="/WEB-INF/pages/member/work/member_info_experiences_list.jsp" />
									</div>
									<div id="tab_2" class="tab-pane">
										<jsp:include page="/WEB-INF/pages/workcase/member_info_workcase_list.jsp" />
									</div>
									<div id="tab_3" class="tab-pane">
										正在加载，请稍后...
									</div>
									<div id="tab_4" class="tab-pane">
									</div>
									<c:if test="${item.isExpert eq 1}">
										<div id="tab_5" class="tab-pane"></div>
										<div id="tab_6" class="tab-pane"></div>
										<script type="text/javascript">
											initExpertDetail();
											initMemberQualified();
										</script>
										<div id="tab_7" class="tab-pane">
											<jsp:include page="/WEB-INF/pages/member/edu/member_edu_detail.jsp" />
										</div>
										<div id="tab_8" class="tab-pane">
											<jsp:include page="/WEB-INF/pages/member/expert/member_expert_list.jsp" />
										</div>
									</c:if>
								</div>
							</div>
						</div>
					</div>
					<%-- 工作经历、作品案例、身份证信息、资质证书  信息结束 --%>
				</section>
			</div>
	
			<%-- 底部 START--%>
			<jsp:include page="/WEB-INF/pages/base/inc/footer.jsp" />
			<%-- 底部 END --%>
	
			<%-- 控制板 START --%>
			<jsp:include page="/WEB-INF/pages/base/inc/panel.jsp" />
			<%-- 控制板 END --%>
		</div>
	</body>
</html>